package com.tiancheng.trade.merchant.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tiancheng.trade.commom.core.data.PageInfo;
import com.tiancheng.trade.commom.web.model.OrgBusinessDTO;
import com.tiancheng.trade.merchant.model.OrgBusiness;
import com.tiancheng.trade.merchant.vo.merchant.QueryOrgBusinessReqVO;
import com.tiancheng.trade.merchant.vo.merchant.QueryOrgBusinessResVO;

import java.util.List;

/**
 * 机构业务关联管理 service
 */
public interface IOrgBusinessService extends IService<OrgBusiness> {
    void newOrgBusiness(OrgBusiness orgBusiness);
    List<OrgBusinessDTO> getByClientId(String clientId,String termNo);

    /**
     * 分页查询业务
     * @param conditions
     * @return
     */
    PageInfo<QueryOrgBusinessResVO> queryPage(QueryOrgBusinessReqVO conditions);

    /**
     * 列表查询业务
     * @param conditions
     * @return
     */
    List<QueryOrgBusinessResVO> queryList(QueryOrgBusinessReqVO conditions);

    /**
     * 保存授权业务
     * @param business
     */
    void saveOrgBusiness(OrgBusiness business);

    /**
     * 删除
     * @param id
     */
    void delete(Long id);
}
